import model.User;
import model.User2;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
import model.medelMin.tmp.Tmp2;

@Component
public class Test2 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("annotate-spring-config.xml");
        Tmp2 tmp2 = context.getBean("tmp2",Tmp2.class);
        tmp2.fun();
        User2 user2 = context.getBean("user2",User2.class);
        System.out.println(user2.id);
    }
}
